# url = 'https://sputniknews.cn/services/archive/widget/more.html'

base_url = 'https://sputniknews.cn'


# ----------------------------
# timeline.py 初次爬取请直接修改下面的url：
#       L: https://sputniknews.cn/services/archive/widget/more.html?&date=20170913T061900&articlemask=lenta&type=lenta'
#       其中，datetime>=当前时间就行 中断后接着爬就在nexturl.txt手动复制url粘贴到此 建议在打印epoch休息时停止程序，否则必然会数据有损失，
# 如果不可抗力因素中断，解决办法：获取时间线.csv中最后一条数据的date作为时间修改L
#
url = 'https://sputniknews.cn/services/archive/widget/more.html?id=1040226996&date=20220322T224231&articlemask=lenta&type=lenta'

# ---------------------get_detail_news.py
get_detail_scv = './时间线/时间线.csv'
get_detail_continue_id = ''
# 中断后到 get_detail_now_id.txt 手动复制id粘贴到此
# 用于中断后继续操作，未中断过或者首次执行留空

user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0'
# cookie = '_T_WM=72692257165; SUB=_2A25PMc74DeRhGeFI7FcU9irMwjSIHXVs3dKwrDV6PUJbktB-LULMkW1NfPaxIpxfhi7z-Y05vISU-jmjFZWBegYk; SUBP=0033WrSXqPxfM725Ws9jqgMF55529P9D9W5OEBcs0jmOynHIvy2hzNeH5NHD95QNSoMfSKqXeh.RWs4DqcjMi--NiK.Xi-2Ri--ciKnRi-zNS0qNSK-cSh5415tt; SSOLoginState=1647689389; XSRF-TOKEN=67f6ed; WEIBOCN_FROM=1110006030; MLOGIN=1; M_WEIBOCN_PARAMS=uicode%3D20000174'
# MONGO_URI = '127.0.0.1:27017'


# ======================================================================================
# 中断后爬取 忽略，没有实际作用，画饼而已，懒得写，就算知道只是引入和替换一个变量我也懒得写
# if not os.path.isfile('nexturl.txt'):
#     with open('nexturl.txt','r') as f:
#         continue_url = f.read()
#     # print(continue_url)
# else:
#
#     continue_url = 'https://sputniknews.cn/services/archive/widget/more.html?id=1023583940&date=20170913T061900&articlemask=lenta&type=lenta'

#
# 忽略这些，太懒没写完
# start_time = '20220404 13:58' #年月日 时:分
# end_time = '20220401 13:58'
# new_url = 'https://sputniknews.cn/services/archive/widget/more.html?&date='+start_time+'&articlemask=lenta&type=lenta'
# ============================================================================================
